// Domien Nowicki
#include "QtTreadmillActivateAnimation.h"

QtTreadmillActivateAnimation::QtTreadmillActivateAnimation(): treadmill(0)
{
}

QtTreadmillActivateAnimation::QtTreadmillActivateAnimation(const QtTreadmillActivateAnimation& rhs): QtAnimationCommand(rhs), treadmill(rhs.treadmill)
{
}

QtTreadmillActivateAnimation::~QtTreadmillActivateAnimation()
{
}

void QtTreadmillActivateAnimation::SetTreadmill(QtTreadmillSprite* receiver)
{
	treadmill = receiver;
}

void QtTreadmillActivateAnimation::Execute()
{
	if (treadmill)
	{
		treadmill->Move();
	}
}

QtAnimationCommand* QtTreadmillActivateAnimation::Clone() const
{
	return new QtTreadmillActivateAnimation(*this);
}
